IF (l_error_flag = 'N') THEN
               BEGIN
                       hr_pos_hierarchy_ele_api.create_pos_hierarchy_ele
                       (p_parent_position_id            => l_parent_pos_id
                       ,p_pos_structure_version_id      => l_pos_structure_version_id
                       ,p_subordinate_position_id       => l_position_id
                       ,p_business_group_id             => l_bus_grp_id
                       ,p_hr_installed                  => NULL
                       ,p_effective_date                => SYSDATE
                       ,p_pos_structure_element_id      => l_pos_structure_element_id
                       ,p_object_version_number         => l_object_version_number
                       );
                       EXCEPTION
                       WHEN OTHERS THEN
                               l_error_flag := 'Y';
                               l_error_msg := 'HR_POS_HIERARCHY_ELE_API ERROR (' || l_position_id || ') [' || SQLERRM |
| '].';
               END;
               END IF;

               IF (l_error_flag = 'N') THEN
                       l_success_count := l_success_count + 1;
                       dbms_output.put_line(c.pos_name || '               Successfully Added');
                       update cnv_hier
                       set process_flag = 'Y'
                       where business_group = c.business_group
                       and hierarchy = c.hierarchy
                       and pos_name = c.pos_name
                       and parent_position = c.parent_position;
                       --COMMIT;
               ELSE
                       l_error_count := l_error_count + 1;
                       dbms_output.put_line(c.pos_name || '             ' || l_error_msg);
                       ROLLBACK;
               END IF;
